package com.example05.demo.utils;

import com.example05.demo.pojo.vo.ResultVO;

public class ResultUtils {

    public static <T> ResultVO<T> success(T data){
        return new ResultVO<>(1,"success",data);
    }

    public static <T> ResultVO<T> error(int code,String msg,String description){
        return new ResultVO<>(code,msg,description,null);
    }

 }
